package com.example.chat.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chat.beans.Role;
import com.example.chat.result.BaseData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    List<Role> selectByAdminId(@Param("adminId") Integer adminId);

    List<String> selectPermissionByAdminId(@Param("adminId") Integer adminId);

    IPage<Role> selectAll(@Param("content")String content, Page<Role> rolePage);

    List<Role> selectNameByAdminId(@Param("adminId") Integer adminId);

    List<BaseData> selectAllRoles();
}
